package com.example.gameandroid;

import org.andengine.engine.Engine;
import org.andengine.entity.Entity;
import org.andengine.entity.primitive.Rectangle;
import org.andengine.entity.shape.IAreaShape;
import org.andengine.entity.sprite.Sprite;
import org.andengine.opengl.texture.region.ITextureRegion;

public class Rock extends Entity{

	private Sprite rock;
	private IAreaShape rec;
	
	public Rock(Engine engine, ITextureRegion rockTexture) {
		
		rock = new Sprite(0, 0, rockTexture, engine.getVertexBufferObjectManager());
		attachChild(rock);
		
		rec = new Rectangle(50, 10, rock.getWidth()/3, rock.getHeight()-20, engine.getVertexBufferObjectManager());
		attachChild(rec);
	
	}
}
